package com.smart.manager.finance.entities.bodys;


import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.finance.entities.enums.AppType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 支付中心-支付宝配置
 *
 * @author Administrator
 * @date 2022/10/31
 */

public class RAccountAlipay {


 /**
  * 支付订单搜索条件
  *
  * @author xiaxuqiu
  * @date 2022/10/17
  */
 @Data
 @EqualsAndHashCode(callSuper = true)
 @ApiModel("RAccountAlipay1")
 public static class SearchBody extends BaseSearch {
  /**
   * 应用appId
   */
  @ApiModelProperty("应用appId")
  private String appId;


  @ApiModelProperty("应用类型")
  private AppType appType;

  /**
   * 备注信息
   */
  @ApiModelProperty("备注信息")
  private String description;
 }


 @Data

 @ApiModel("RAccountAlipay2")
 public static class EditBody implements Serializable {
  /**
   * 支付宝关联的APPID
   */

  @ApiModelProperty("支付宝关联的APPID")
  private String appId;

  @ApiModelProperty("支付宝关联的APPID")
  private AppType appType;

  /**
   * 是否是沙箱环境
   */
  @ApiModelProperty("是否是沙箱环境")
  private Boolean sandbox;
  /**
   * 支付宝公钥
   */
  @ApiModelProperty("应用公钥")
  private String publicKey;
  /**
   * 应用私钥
   */

  @ApiModelProperty("应用私钥")
  private String privateKey;
  /**
   * 签名算法
   */

  @ApiModelProperty("签名算法")
  private String signType;


  @ApiModelProperty("描述信息")
  @Length(max = 1000, message = "描述信息 不能超过1000个字符串")
  private String description;
 }


}
